added the autoclose plugin