generalize navbar creation, added persistent date between views