replace template with confirmation