ui: only show name if only the name is given (metrics3 compatibility)