chat interface cleanup