add pagination and search bar