added how to get widget type id