added togglePlay to switch between players