cinema adding dialog refactored to work via JSON input-output