fixed polling loop and externalized from other views.