Added user-friendship UI managment as well as some AJAX