adjust graph data display, added title, fixed some jquery bugs