small fix for showtab to handle the user hitting back button