REFACTOR: add scripts through templates
REFACTOR: structure of file chooser