added ability to toggle playing