Added click handler for all text elements