Fix favorites functions like add/edit/...

terminateThis() was not properly called, breaking add/edit/remove
functions in Favorites pannel