Adding widget update event