change . and .. to meaningful names. preference gets set now. dialog dismisses properly.