gui and error check for stdev