Yapco 5 update

* added dialog for exit
* some refactoring