change ui theme and add security auto-save db