Implement gui in main class.