finish the tab controller