added friend code to display a list of friends