turned off polling when not visible