add localstorage & template