Updated CustomModule to display any variable

Updated CustomModule so that it displays whichever value is displayed in
the corresponding textbox.