added playpause duration option