updated navbar code