clean up viewer