realise all methods of friends controller