Used Runnable class to run GUI