on delete graph, go to first graph; closes #355

instead of closing project, go to first graph or component if exists