handle nav page changing the back button state