improve typing indicator