refactor: move editbar into a viewlet