Adds click handlers to document class