format settings better- onchange to closure