added subdirective to load and hook html layer