added load file function index.php