modified to work with the FamiliGui