added handling for legacy page
added words and xps retrieving in legacy page