created pages table and connected directions