updating widget layout