Refactor list button
Refactor will_paginate