added initial ifs for condition displaying of private-facing links