change widget type