changed polls to qtruntime objects and added listeners for poll change events