formatting index page to have rows