change autoclose plugin