passing component id and clazz along