set up loop widget