Integrate friends system into new templates