refactored config page.