refactor pagination. add pagination to dashboard search and trash.