Added support for refreshing UI queries