Refactor to play sound based on button tag string