Re-register events when edited.