Tabs now return to the proper tab when dismissed