adding a toggle play in the api