properly save null for layout widget