add summary statistics and cleanup ui