friend add/cancel and fix some bugs