fix navbar functionality and style issues