fix append slash in settings, load last setting to form