Refactor music play pause