Pages controller modifications