formatting index view