Update for insert value method, given a boolean flg for event append mode instead of  given index