changed to get the correct group when deleting from the grid. changed the note to not add one if the text box is empty.