wrking on the gui for selecting repetition