Enhance the header bar UI. First, cache unnecessary ajax call to server and refresh. Second. make it change style according to different situation.