improving SampleEditView loop controls