passed whole book instead of just id to controller