Create variables after get the submit action