Update UI

update interface for messages, and code format