adding functionality to play button