Improved memory management on resource viewers