commit enum and change dialog