added pagination with will_paginate gem