working active tabs on navigation bar