changed back messages to inbox/outbox/ model