REFORMATING, new controller index.php using resources