add click-function for export