moved function LeadStatus to other functions