adding active state to top bar menus