added window.mainloop()