Fixing pagination

Pagination was not in the right part of the screen and was overflowing because we didn't handle many page results well. This should fix that.