latest code with working play button