added pagination via will_paginate gem