added index and show to books controller