fixes to contact book and messages.

fixes to contact book and messages.