Code

Implement singleton behaviour for undo history dialog. Make sure event