Fix pagination on todo page. closes #721