changed play button event handler to click