Moved session reset to module set function to detect change in code from local storage