added saving of invited friends