(XUI) Move file list code to XUI