fix for addpref and keyexists
Merge branch 'UI' of https://github.com/guide-me/GuideMe.git into UI
fix for addpref and keyexists