auto add and delete line works now
cleaned up frienship.js