Add pagination support to form helper