Adds a confirmation dialog