Changed how widgets are removed from main layouts.