added formatDate helper
switched to localstorage!