added handling of titlebar-click and kill-client button
removed kill-client added main-window drawing
- added thread names