Adding click handler