created a controller with two pages