Better support for appending pages dynamically
allow setting current page before layout