cleaned up the layout of the index view