revert changes to tab switching