Implemented foundations for gui