changed file and directory dialogues and added windows part