Added dynamic class to navigation