update app

add cache to localstorage, better connection handle, change loading
spinner