removed unused imports
sending only last 5 messages when sending history back
tolte due stampe