loop button and stuff for in autoplay