fix graph api & add ajax support into dashboard