add load new file function and switch realtime update callback