Pop to the root if the tab bar button is pressed