Write the graphical user interface