Added support for switching between sent and received messages in contact page.