changed how page files are added (read the directory 'pages/')