change to post method to submit data