Find and fix missing ends

Hi John,

You have a couple of missing ends some files and a route that needed to be fixed. After this merge you should be finished with pagination.

Regards,
Ben