fix user and view document