refactored chat event handling to service
refactored user events to own service
clear chat message after sending