updated note_grid to work with any record type