little bit of work, move over advanced gui class from CatMod