make tool selection persist in localStorage