Cleanup tabs in base template