Enriched the concept of a mode. Mode can now define name, title, okButton and cancelButton labels.