add tap2close method