moved admin nav button code into if-logged-in block