Implemented a simple gui