refactored will_paginate initializer