added pagination and search oh my god that was so frustrating