connected the button and put the string and string array VARs after the button onclick