make tabs and submenu working