Implemented friend view and viewmodel