fix pressing back button going to correct tab