Update will_paginate method