autoclose added