Implement the setting and display of GUI