added play and pause functions