finished edit, update, index and destroy actions