more work on pages including sort