chat functionality and styling