Implemented delegate method for creating a new diagram.