set active menu and sub menu