Refractored to gui package.