Update DefaultController.php & adding some modifications

dvi-