added buttons to change sample size