The file select hook did construct an active_file but did not assign it to the actual variables. This commit changes the hook to use the existing setActiveFile helper function.