Create controller to draw graph remove script from index