revert window stuff