make tabs and submenus working