added play/pause toggling