added submit to type attribute