Default editor for choices

Refactor. This is too much of a hack. Code can not be understood at all