added nav bar function (doesn’t work)