moving modules to a template