Using setting on main window