Code style from merge request
Added two new events to observe 'chat_open' and 'chat_close'
Testing chat_open event