fix bug when clicking away after file rename has begun. refactor file_view.set_dir() related things