generic_helpers update for dialog