small changes to make the tabs work properly