Change play functionality to fix pause issue