add confirm fuction