Fix NPE setting click listeners. Fix parse error due to server returning array.