improved data-handler

 trigger event if ready, otherwise take car if web socket connection
get lost during using the web app