adding active class to navbar ondemand