Improved window. It uses now the Singleton design pattern.