change chat room functionality