Give code that handles pagenum and note skipping a higher priority

to reduce code duplication