changing templates show index methods to single method