Update PageController.php

prevent Direct access