Add hook on tags change.