click on button to log an interaction as csv file