Changed text.text to text.setText()