void updateData()
    {
        myGazeObject = GazeData.getGazeData(currId);
        Debug.Log("uiscript" + myGazeObject);
        Debug.Log("id " + currId + " gameobject name " + gameObject.name + "gameobject pid " + myGazeObject.pid);

        switch (gameObject.name)
        {
        case "pid":
            transform.GetComponentsInChildren <Text>()[0].text = myGazeObject.name.ToString();
            break;

        case "time_in_second":
            transform.GetComponentsInChildren <Text>()[1].text = myGazeObject.time_in_second.ToString();
            break;

        case "visited":
            transform.GetComponentsInChildren <Text>()[1].text = myGazeObject.visited.ToString();
            break;

        case "ttff":
            transform.GetComponentsInChildren <Text>()[1].text = myGazeObject.ttff.ToString();
            break;

        case "time_spent":
            transform.GetComponentsInChildren <Text>()[1].text = myGazeObject.time_spent.ToString();
            break;

        case "fixation":
            transform.GetComponentsInChildren <Text>()[1].text = myGazeObject.fixation.ToString();
            break;

        case "revisitor":
            transform.GetComponentsInChildren <Text>()[1].text = myGazeObject.revisitor.ToString();
            break;

        case "aoiImage":
            //since image is in button level so no need to go down to search
            transform.GetComponent <Image>().sprite = Resources.Load <Sprite>(myGazeObject.pid.ToString());
            break;
        }
    }
 void showInitData()
 {
     GazeData.getGazeData(1);
 }