Made paagination work