Removed selected tab hack