adding click handler to keep links internal