createPages works for all pages