put addFriend in the page template