fixed tabmanager and mainmenutab problems