Changes alert box to confirm box when deleting object