Separated each of the GUI elements into different classes.