fixed while loop

Cleaned the while loop from openFolderButton.java