added pagination using will_paginate