Move navbar code out of header into a separate file