added some structure to the index view for messages