stylesheet register implementation