changed button to type=submit