add custom dialog form to accept file name and template type