make editing work (almost) for pages