implemented basic directory dialog example