building the gui