added some of the changes on click of submit button.