changed shared preference clearing code to support for new build, some UI changes