Added smoothing function to click ratio