added pagination with will_paginate