feat(widget): save id of a context stage

save widget with their ids

time: 0h:40