added the AutoClose plugin