updated node details view to conditionally show a relations panel only if relations exist for the given type