re-arrange pages