implementation. can set auto close delay.