Added handler for currentLayerChanged and selectionChanged
Added handler for actionToggleEditing triggered
Added more checks for enabling/disabling insert button