updated to show links only when user is logged ni