Close edit form on cancel.
Only deactivate when necessary.
Add spatial fragment support to MetadataCue.