can viewName be null? if so provide also removeView(viewName: Option[String])