Created submit button handler