chat resize, secure xss chat