Remove unnecessary methods and refactor dialog code like folder-listing
Load file-listing externally