UI update - legend and results functionality