added config class to store last folder between sessions