update widget size