enabled automatic saving to localStorage

also some minor cleanup to show_selector.js
added 2 second timeout to alert messages