Camera not Changing Position

I am trying to change the camera position when the Motion controller trigger button is pressed. Only the text updates which confirms that the trigger press returns true. However the call to explictly change the camera position doesnt work.

using UnityEngine;
using UnityEngine.XR.WSA.Input;

//Script is attached to the camera
public class CameraController : MonoBehaviour {
    TextMesh txtMesh;
    GameObject displayText;
    // Use this for initialization
    void Start () {

        InteractionManager.InteractionSourceUpdated += InteractionManager_InteractionSourceUpdated;
        displayText = GameObject.FindWithTag("StatusText");
        txtMesh = displayText.GetComponent<TextMesh>();
    }

    private void InteractionManager_InteractionSourceUpdated(InteractionSourceUpdatedEventArgs obj)
    {
        if (obj.state.selectPressed)
        {
            transform.position = new Vector3(-5.71f, 1.0f, -2.23f);//Change the position of the camera from (0.0f,1.0f,-2.23f) not working
            txtMesh.text = "Trigger Pressed";//ok
        }
    }

    // Update is called once per frame
    void Update () {
       

    }

    private void OnDestroy()
    {
        InteractionManager.InteractionSourceUpdated -= InteractionManager_InteractionSourceUpdated;
    }
}

Ok found a solution. The camera needs to be added as a child of another object which you move.