can create a new graph or open a graph without having the message dialog if the current graph is already saved or empty