This function will be useful to update the expanded view whenever user navigates the file browser. The expanded view is a table which shows the directory content.