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