added some code to display a basic gui