Re-write config UI, not completed yet.