renamed friendship controller and added code conventions