Implemented a main UI