onClick: exchange hash map