update widget layout