updated add book function to redirect to books/index page