modify main.php and default controller