added accept and confirm api