more generic event handling
while loop
Merge branch 'master' of https://github.com/tower/client-view