use localStorage to store contract selection