added auto view for documents