updated URL handling for admin site