Add classes for widget type: input, output, or command