Extracted some important methods for the GUI classes into an interface