Added methods to window classes