broke out directory navigation code; render filelist sorted by name