Page navigation back is not working


My app nav flow is like this
Login -> Main -> List

In main page I have three tabs. When I press android back button from list page, it goes to login page. What can be the issue?
three tabs made as directives(md-tabs).
I have used $state,go() to navigate no next pages.


So far as I understood, is that every tab has it’s own history, so the back functionality doesn’t work on tab navigation?