added active class to navbar item when page loaded