gui package cleanup, added border for rotation