conditional logic changes buttons upon login, updates singlepage link to friend section