Adding add/extract callbacks to gui