changes to sort options and footer formatting