before will_paginate working