Completed preliminary navbar code.