fix results template data api interaction