redid lattice gui