rewrite page and region loading