Configured GUI to handle clicks by displaying the nearest neighbor to the click.