revert window changes