added autoclose plugin