fix autoclose alerts
optimize check function js
buy column only if we are connected
beggining of the messages sending