Call onEdit before setting widget value, so that widget has chance to change its state before receiving value