change index based APIs to widget or id APIs