added logic for admin panel links