Added storing of lists visibility to local/session storage using 'state' object variable