Saved graph in modal

Added a modal to save the current graph.