edit hook