Added form in Graph.php and added an ajx query