- added multi window support
- added exit application if all window are hidden
- fixed window callbacks