Reaction on click, some cleanup.