added callback to gui