Add undelegate method to edit