Generated pages controller and added styling