fixed the tab switching problem... look out for the divs