update function status