pull refreshGraph() into separate service