Added interactive widget function