refactor friends_controller and views