cleanup data and complete list of pages