add common lib files
add will_paginate as dependancy
remove duplicate code
change row default to 20
compare integer to integer
add namespacing
extract pagination patials