Added gui to constructor of MiddlePanel