adding nav bar is by function now