Remove profile function, generic approach for modal confirmation (refs #276)