Fixed memory leak
Changed text input UI