Change show/hide reference text on click