fixed the tab issues