added will_paginate for posts and comments