finish editing add friend functionality