Add preview function for UI config