adding code to display folders and files separately