submit button works properly, views are switch with reset button is clicked