finishing queue and adding pagination to transactions