Updated the confirmation modal removing duplicate code.