optional directory selection dialog added