Pages controller complete