made the nav dynamic