extracted Controller,Model and View from Dcore.php