added button to main window.