worked on submit button