add update purchase function when clicking play button, fixes issue #117