add KNN in output gui