Added view controller logic to FriendListViewController