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