added autoClose