changed way to load/choose a template