Change loops in paginating_form