fixed document import, detail view, routing detail view, small fix to collectionrefresh when only new entities, added docuemt and segment to tag query attributes