modify TodoController #destroy action to handle ajax response only