Moved chat bar code from SVN