added renderOnDrag flag; moved iteration variable