Add handler for closing node editor
Add newAction back into PM