adding click handler