Revamped the 'friends' behavior and templates.