fix action context in modal component