try adding will_paginate