add dynamic navigation and current state for links