add looping playback in index page