separated navbar code into a single file, now it is persistent across
all pages (except login)