remember the previous window