tried to add cookies but storage is too small. so workaround with localstorage added