change file architecture for widgets