Added folder dialog code