rename page controller into api controller