switching to new widget syntax