Changed navbar to be a foreach for easy updating