Core: remove widgets before resetToLoadState