refactor friends_controller and views
refactor tests