Add helper functions for the confirm dialog