adding submenu condition to menu partial