created connect function, controller and added index.php