Added ui controls
Try using different distance metrics