update navbar code