added order_by_latest scope to messages so that the  most recent ones are displayed at the top of the list
eager load user association while loading messages