finished non-js portions of friend_page