window manipulation now doesnt depend on events