attempt to add _view_cleanup
tests are passing
complete viewCleanup implementation