Adjusted new additions to work with GUI as extension of JFrame