minor bug fixes to the navbar