refactor tracer, move anonymous method to a named method "createClickedDot"