switch to rc5
avoid deprecated remote.getWidgetState