change friendView to use segment control