transfer wil_paginate function fixing to initialize