implemented confirmation js