clean up show and index spacing in code