Cancel button bugfix, exit button, last url in main window, cleanup