Better showNodeDef function