change context to window