improved 'cond' rendering in the viewer