fix bugs: download formats work, modal events registered only once