added ajax to submit button click