Back pressed problem in tab layout

I created a tab layout consisting of 4 sections. I’m making a mistake somewhere in the coding where I put the block part. When I navigate between tabs, the home page always opens. When I press back, it asks if I want to exit. I say yes, but it doesn’t exit. It gives the error closing forms is not currently supported during development. Can you help me?