leaving scratch now goes to previous window