changed form submit method