Event listeners added for before/after edit, move, add, and delete. Minor typo fixed.