edits to module file-adding function to handle submit and save file