in resampling module: changed text position and reset intermed and resampling graph when new data is assigned to sample 1 or 2.