fix the books controller