Implementing friend view and viewmodel