add books and fix alert for homepage