generate page structure after datafiles load