Implemented logic to activate the link in the navigation menu related to the visible page