Implemented saving/loading of previous settings.

Implemented saving/loading of previous settings and fixed tab order of form controls.