Turned code into final submit form