base.php change into controller.php