Adding spinner when loading a graph