Moved some ops with storage to persistence.js
Fixed styling of dialog.
Single instance of dialog can be open on page.
Fixed CSS