implemented tkinter window for output