added buttons for folder selection
fixed bug loading files