Fixed feedback loop in clustering and made its UI nicer.