Dir browser and refactoring debug menu