modified sample editor
auto-preselect unit