Fixed Gui issues

Fixed the incessant reloading of frames and the program not quitting
Made the selection window start at the user's current directory