adding nav bar dynamic to app