fixed submit button click event on front page.