Refactored books controller, fixed problem with all links controller