added the possibility to choose the number of transactions to show