Implement some settings in main window.