added examples and fixed but related changing state of chat window, start making progress on mvc