form created and button passing the attributes from the form