Make filtering update the pagination links

This fixes #22