switch to javascript object instead of string array
change the button text