added support for injecting css/js into layout