added friends and edit friends logic