further coffeescript idiomaticization in mainView