changed up pages to be a controller