Restore previous window, closes #190