search functionality
add search functionality and simplify pagination