Delete works. New reuslt insert has consider not being the latest
Adding new entries now will calculate gaps correctly even it's not the latest.

Some changes to the signal slot declaration. need to figure out how the
variable is passed around between signals and slots