implementation of file browsing
some changes to the directory