add confirm functionality