clean up code, reset the form data after creation.