add ai pages controller and model