Add active class to navbar menu items with state