refactor to use limit
Merge pull request #2811 from dimagi/all_forms

refactor to use limit