Added showAdminPanel logic