added methods common to myfriends.php and find.php for friends control and getting the data for the pages