added active menu selector in the navigation in a dynamic way