modified activity of submit button