calculate redirect messages for update, destroy