add play and pause function.