adding controls for lattice with hooks
still debugging hooks