Delete unused code
Rejig html
use constants to define fields and module settings
Update module settings by ajax call and display success message