save user settings into localStorage; refs #3