Window packed - solved the "disappearing"problem. Classe divided according  to MVC