added preventdefault to submit