added a flag too handle play pause stats