documentview cleanup