Added events and listeners for confirm box.