restructure page to be pages instead of strings