removed unneeded code and fixed chat message display version