add submit button

add submit button and function to submit data to server