Make tabs work correctly