Widget changes for new API