Switch controller to Scala