Simplify way of how we get page id when reording pages.