to optimized the interface of chat