Adding dispatcher php for drawing graph