controller, added friend functionality