first add new action, then change the current action index