added friends base controller and edit function