very basic framework of GUI