saving state on function tooltips