made index and show page working