Implement submit code button