renames and reorders pages