updating nav bar opacity