more clean up to navBar.js