clean navbar code