refactors and show recent messages
append correct msg to message board when chatting
reduce useless code
scroll to latest messages when sending or receiving messages