send departments to view as object