add controller to index.php