api page controller