Added Window utility methods for clearing and updating