UI updates
caching first and last message