Added confirmation dialog when closing editor.
Cleaned up UI a little bit.