indentation
fix reference to undefined
basic display of chat