Index: applications/editors/josm/plugins/relcontext/src/relcontext/ChosenRelationComponent.java
===================================================================
--- applications/editors/josm/plugins/relcontext/src/relcontext/ChosenRelationComponent.java	(revision 25682)
+++ applications/editors/josm/plugins/relcontext/src/relcontext/ChosenRelationComponent.java	(revision 25685)
@@ -26,6 +26,10 @@
     }
     
-    private final static String[] typeKeys = new String[] {
-        "natural", "landuse", "place", "waterway", "leisure", "amenity"
+    private final static String[] TYPE_KEYS = new String[] {
+        "natural", "landuse", "place", "waterway", "leisure", "amenity", "restriction", "public_transport"
+    };
+
+    private final static String[] NAMING_TAGS = new String[] {
+        "name", "place_name", "ref", "note"
     };
 
@@ -39,13 +43,14 @@
 
         String tag = null;
-        for( int i = 0; i < typeKeys.length && tag == null; i++ )
-            if( rel.hasKey(typeKeys[i]))
-                tag = typeKeys[i];
+        for( int i = 0; i < TYPE_KEYS.length && tag == null; i++ )
+            if( rel.hasKey(TYPE_KEYS[i]))
+                tag = TYPE_KEYS[i];
         if( tag != null )
             tag = tag.substring(0, 2) + "=" + rel.get(tag);
 
-        String name = rel.get("name");
-        if( name == null && rel.hasKey("place_name") )
-            name = rel.get("place_name");
+        String name = null;
+        for( int i = 0; i < NAMING_TAGS.length && name == null; i++ )
+            if( rel.hasKey(NAMING_TAGS[i]) )
+                name = rel.get(NAMING_TAGS[i]);
 
         StringBuilder sb = new StringBuilder();
Index: applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java
===================================================================
--- applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java	(revision 25682)
+++ applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java	(revision 25685)
@@ -114,10 +114,10 @@
         topLine.add(chosenRelationComponent, GBC.std().fill().insets(5, 0, 5, 0));
         final Action sortAndFixAction = new SortAndFixAction(chosenRelation);
-        final JButton sortAndFixButton = new JButton(sortAndFixAction);
+        final JButton sortAndFixButton = (JButton) sizeButton(new JButton(sortAndFixAction), 32, 24);
         topLine.add(sortAndFixButton, GBC.std());
         final Action downloadChosenRelationAction = new DownloadChosenRelationAction(chosenRelation);
-        final JButton downloadButton = new JButton(downloadChosenRelationAction);
+        final JButton downloadButton = (JButton) sizeButton(new JButton(downloadChosenRelationAction), 32, 24);
         topLine.add(downloadButton, GBC.std());
-        topLine.add(new JButton(new EditChosenRelationAction(chosenRelation)), GBC.eol());
+        topLine.add(new JButton(new EditChosenRelationAction(chosenRelation)), GBC.eol().fill(GBC.VERTICAL));
 
         chosenRelationPanel.add(topLine, BorderLayout.CENTER);
