added view.poll() and modified app.show() a bit