added limit to displaying history