adding autoplay support 1
changes for autoplay
few tweaks