Refactored the register new book view to use view model.