made nav bar dynamic