Stores modules in local storage upon clicking save button.