Submit function modified.Added button, reset function