when clicking the submit button, will change page rather than load another page