change friend function

after addfriend or unfriend relocation to friendlist
update friend function