added autoClose to props