refactoring question partial, styled show and index individually