window.mainloop() added