cleaning and add click handler for a tags