created Pages controller