added index and show method