Added dialog for close and renamed a variable
Changed initial directory, and changed method of pop up