Changed record OnClick function once again.