modified show and index page for better formatting