Feature/mode management

add param to say which editor/widget to update