1st semiworking version of the PAGES app