fix display graph in tabs