update top bar in every page