move sales performance tree code and views into sales_performance_details