Add support for viewCleanup() method