improvements on message state and chat title rendering
added new "exit" button and improved logic for that