fileGUI: simplify code and add UI for the upcoming file search functionality.