moved 3 sidebar.controller methods to factory, adjusted code for updateFriendsOrder to take name from each object in myFriendsList