change edit from display type to widget type