Moved the building of the GUI out of the constructor and into its own
method.