Using history API
Added todo to fix api namespace
Active class to books
set up default value
Fixed deprecation warning
Namespaced api and changed to history