change widget to a window in editor