changes to show profiling data, when clicked on stop profiling