assigning input fields when paginated.