cleaned up show and index views code formatting