move loading and querying out of controller and into to service, graph get cached localy in the service , ready to edit