working on template chooser