create friendship functionality