Fix bug when there are no messages
Add a refresh button