Added layout detection for admin prefixes