more idiomatic scala code in CallEditor.scala