refactoring and chat colors