add comfirm before leave