*Changed the comparator for file names.
*Refactored comparator passing
*Fixed bug with toast for first/last page appearing on page progress