Added autoclose plugin