Move menu creation code into separate methods
Open a canvas when the diagram is opened