Made navigation active class  dynamic