togglePlayer logic added