Changed GUI  from extends JPanel to JFrame