Refactored event connections from the file browser.