improved script that controls the tabs on the theme options page