finished email friend functionality