Need to fix the cannot invoke getText() on type int