switch views and reset form works