Generate Page controller