refactor books controller
WIP