Working on trigger editor.

Relates to #168