navigation fix for sorting pages