small refactoring on design of index page