adjust UI/functions.

support save/load settings.