Made minor change to enable action on submit button click