added autoplay and other stuff