Major changes to friend.php and searchaction.php (added actions)