made changes to pages.php, testdata.php for testing