Building the gui