Sub templates for dynamic lists

Still need to sync static js files