removed tts and defined messages in onMessage