Implements the OnClickListener.