Registering a dynamic sidebar