fixed viewmodel for document viewer