make pageEditor more self-sufficient