Used undelegate method to prevent multiple submissions