add null check to referral bo component to avoid php warning
add number of customer's orders to order detail page