Added "min or mean" radio buttons + functionality