add onclick function with add goods