pagination working for the most part, stil a few edge cases to iron out and then fix the UI for the loading animation