add firebase transaction complete function