document viewBuilder definition