moved chat related things to a chat file and made display slighty more modular