Update CoreController.php

Change model loading and using.