drawing at the right position in the command history
switchLayerCommand will not be saved, just done once
save layerdialog data if layer gets deleted for undo
undone,deleted + hidden flag
deleting layer with delete-flag