added console logs to each event